def aaa(func):
    '''
    而退票[人吃饭就好v很贴心的名誉富裕程度
    :param func: 苦于覅,ugi,ugi,ugkiub
    :return: hgjhgkjg
    '''
    def wrappe():
        print('hello')
    return wrappe()
def sale(price,zk=10):
    return price*zk//10

def sum_my(*num):
    sum = 0
    for i in num:
        sum+=i
    return sum
    print(num[0])
def print_my(**kv):

    print(kv['name'])
    print(kv)




print(sum_my(1, 2, 7, 3))

print_my(name = 'alice',age = 19,id = 3245)

print(sale(100, 5))

print(sale(100))
#传统位置,必须按照函数制定位置传参

#关键字传参
print(sale(zk=3, price=400))

#全局变量和局部变量
b = 100
def change_b():
    a = 100000
    global b #接下来b的引用就是全局变量的引用了
    b = 200
change_b()
print('--------------->',b)


#形参和实参
a = [100]
def change(a):
    a[0] = 300 #操作值,但地址不变
    a = [300] #更改地址
change(a)
print("-------------",a)

